Package-level declarations

Functions

Link copied to clipboard
suspend fun <T> withApiTimeout(timeMillis: Long, block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
suspend fun <T> withSoftTimeout(scope: CoroutineScope, timeoutMs: Long, onTimeout: suspend () -> T, onLateSuccess: suspend (T) -> Unit = {}, onFailure: suspend (Throwable) -> T, block: suspend () -> T): T

Executes a suspending operation with a soft timeout that doesn't cancel the underlying work.